package com.itqf.dynamic_proxy;

import com.itqf.dynamic_proxy.factory.MyProxyFactory;
import com.itqf.dynamic_proxy.impl.UsersServiceImpl;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/14
 * @Time: 上午10:57
 */
public class TestJkdDynamicProxy {
    public  static  void  main(String[]args){


        UsersService usersService = new UsersServiceImpl();
        usersService.add();
        usersService.delete();
        //usersService.update();
        System.out.println("-------------------");
        UsersService proxy = MyProxyFactory.createProxy();
        proxy.add();
        proxy.delete();
        proxy.update();;


    }
}
